.keydown {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 30px;
    background: #1d2b3a;
}

.keydown .inputBox-top,
.keydown .inputBox-sou,
.keydown .inputBox {
    position: relative;
    width: 250px;
}

.keydown .inputBox-top input,
.keydown .inputBox-sou input,
.keydown .inputBox input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 1rem;
    transition: 0.5s;
}

.keydown .inputBox input {
    border-radius: 2rem;
}

.keydown .inputBox-top input {
    background: #1d2b3a;
    border-radius: 5px;
}

.keydown .inputBox-sou input {
    background: #ffffff;
    color: black;
}

.keydown .inputBox-top span,
.keydown .inputBox-sou button {
    position: absolute;
    box-sizing: border-box;
    padding: 10px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    transition: 0.5s;
}

.keydown .inputBox-top span {
    pointer-events: none;
    left: 0;
}

.keydown .inputBox-sou button {
    box-shadow: none;
    display: block;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    top: 50%;
    transform: translate(-20%, -50%);
    right: 0;
    background: #000000;
    box-shadow: none;
    border-radius: 50%;
    overflow: hidden;
}

.keydown .inputBox-top input:valid~span,
.keydown .inputBox-top input:focus~span {
    color: #00dfc4;
    transform: translateX(10px) translateY(-7px) translate3d(0, 0, 0);
    font-size: 10px;
    padding: 0 10px;
    background: #1d2b3a;
    border-left: 1px solid #00dfc4;
    border-right: 1px solid #00dfc4;
    letter-spacing: 0.2em;
}

.keydown .inputBox-sou input:valid~button .keydown .inputBox-sou input:focus~button {
    color: black;
}

.keydown .inputBox-top:nth-child(2) input:valid~span,
.keydown .inputBox-top:nth-child(2) input:focus~span {
    background: #00dfc4;
    color: #1d2b3a;
    border-radius: 2px;
}

.keydown .inputBox-top input:valid~span,
.keydown .inputBox-top input:focus~span {
    border: 1px solid #00dfc4;
}
.keydown .inputBox input:valid,
.keydown .inputBox input:focus
{
    outline: 8px ridge rgba(255, 0, 0, 0.6);
    background-color: #00dfc4;
}
.keydown .inputBox-sou:valid, 
.keydown .inputBox-sou :focus{
    border-radius: 50px;
    box-shadow: inset 0px 0px 10px 1px black;
}